import request from '@/utils/request'

// 查询集中器列表
export function listMdConcentrator(query) {
  return request({
    url: '/meter/mdConcentrator/list',
    method: 'get',
    params: query
  })
}

// 查询集中器详细
export function getMdConcentrator(concentratorId) {
  return request({
    url: '/meter/mdConcentrator/' + concentratorId,
    method: 'get'
  })
}

// 新增集中器
export function addMdConcentrator(data) {
  return request({
    url: '/meter/mdConcentrator',
    method: 'post',
    data: data
  })
}

// 修改集中器
export function updateMdConcentrator(data) {
  return request({
    url: '/meter/mdConcentrator',
    method: 'put',
    data: data
  })
}

// 删除集中器
export function delMdConcentrator(concentratorId) {
  return request({
    url: '/meter/mdConcentrator/' + concentratorId,
    method: 'delete'
  })
}
